home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpconnect / xpcjsid.h < prev   
C/C++ Source or Header  |  2006-05-08  |  8KB  |  312 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM xpcjsid.idl
  3.  */
  4.  
  5. #ifndef __gen_xpcjsid_h__
  6. #define __gen_xpcjsid_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIJSID */
  19. #define NS_IJSID_IID_STR "c86ae131-d101-11d2-9841-006008962422"
  20.  
  21. #define NS_IJSID_IID \
  22.   {0xc86ae131, 0xd101, 0x11d2, \
  23.     { 0x98, 0x41, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  24.  
  25. class NS_NO_VTABLE nsIJSID : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJSID_IID)
  29.  
  30.   /* readonly attribute string name; */
  31.   NS_IMETHOD GetName(char * *aName) = 0;
  32.  
  33.   /* readonly attribute string number; */
  34.   NS_IMETHOD GetNumber(char * *aNumber) = 0;
  35.  
  36.   /* [noscript] readonly attribute nsIDPtr id; */
  37.   NS_IMETHOD GetId(nsID * *aId) = 0;
  38.  
  39.   /* readonly attribute boolean valid; */
  40.   NS_IMETHOD GetValid(PRBool *aValid) = 0;
  41.  
  42.   /* boolean equals (in nsIJSID other); */
  43.   NS_IMETHOD Equals(nsIJSID *other, PRBool *_retval) = 0;
  44.  
  45.   /* void initialize (in string idString); */
  46.   NS_IMETHOD Initialize(const char *idString) = 0;
  47.  
  48.   /* string toString (); */
  49.   NS_IMETHOD ToString(char **_retval) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIJSID \
  55.   NS_IMETHOD GetName(char * *aName); \
  56.   NS_IMETHOD GetNumber(char * *aNumber); \
  57.   NS_IMETHOD GetId(nsID * *aId); \
  58.   NS_IMETHOD GetValid(PRBool *aValid); \
  59.   NS_IMETHOD Equals(nsIJSID *other, PRBool *_retval); \
  60.   NS_IMETHOD Initialize(const char *idString); \
  61.   NS_IMETHOD ToString(char **_retval); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIJSID(_to) \
  65.   NS_IMETHOD GetName(char * *aName) { return _to GetName(aName); } \
  66.   NS_IMETHOD GetNumber(char * *aNumber) { return _to GetNumber(aNumber); } \
  67.   NS_IMETHOD GetId(nsID * *aId) { return _to GetId(aId); } \
  68.   NS_IMETHOD GetValid(PRBool *aValid) { return _to GetValid(aValid); } \
  69.   NS_IMETHOD Equals(nsIJSID *other, PRBool *_retval) { return _to Equals(other, _retval); } \
  70.   NS_IMETHOD Initialize(const char *idString) { return _to Initialize(idString); } \
  71.   NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); } 
  72.  
  73. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  74. #define NS_FORWARD_SAFE_NSIJSID(_to) \
  75.   NS_IMETHOD GetName(char * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  76.   NS_IMETHOD GetNumber(char * *aNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumber(aNumber); } \
  77.   NS_IMETHOD GetId(nsID * *aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  78.   NS_IMETHOD GetValid(PRBool *aValid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValid(aValid); } \
  79.   NS_IMETHOD Equals(nsIJSID *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \
  80.   NS_IMETHOD Initialize(const char *idString) { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(idString); } \
  81.   NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsJSID : public nsIJSID
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSIJSID
  92.  
  93.   nsJSID();
  94.  
  95. private:
  96.   ~nsJSID();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsJSID, nsIJSID)
  104.  
  105. nsJSID::nsJSID()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsJSID::~nsJSID()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* readonly attribute string name; */
  116. NS_IMETHODIMP nsJSID::GetName(char * *aName)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* readonly attribute string number; */
  122. NS_IMETHODIMP nsJSID::GetNumber(char * *aNumber)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* [noscript] readonly attribute nsIDPtr id; */
  128. NS_IMETHODIMP nsJSID::GetId(nsID * *aId)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* readonly attribute boolean valid; */
  134. NS_IMETHODIMP nsJSID::GetValid(PRBool *aValid)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* boolean equals (in nsIJSID other); */
  140. NS_IMETHODIMP nsJSID::Equals(nsIJSID *other, PRBool *_retval)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void initialize (in string idString); */
  146. NS_IMETHODIMP nsJSID::Initialize(const char *idString)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* string toString (); */
  152. NS_IMETHODIMP nsJSID::ToString(char **_retval)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* End of implementation class template. */
  158. #endif
  159.  
  160.  
  161. /* starting interface:    nsIJSIID */
  162. #define NS_IJSIID_IID_STR "e08dcda0-d651-11d2-9843-006008962422"
  163.  
  164. #define NS_IJSIID_IID \
  165.   {0xe08dcda0, 0xd651, 0x11d2, \
  166.     { 0x98, 0x43, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  167.  
  168. class NS_NO_VTABLE nsIJSIID : public nsIJSID {
  169.  public: 
  170.  
  171.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJSIID_IID)
  172.  
  173. };
  174.  
  175. /* Use this macro when declaring classes that implement this interface. */
  176. #define NS_DECL_NSIJSIID \
  177.   /* no methods! */
  178.  
  179. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  180. #define NS_FORWARD_NSIJSIID(_to) \
  181.   /* no methods! */
  182.  
  183. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  184. #define NS_FORWARD_SAFE_NSIJSIID(_to) \
  185.   /* no methods! */
  186.  
  187. #if 0
  188. /* Use the code below as a template for the implementation class for this interface. */
  189.  
  190. /* Header file */
  191. class nsJSIID : public nsIJSIID
  192. {
  193. public:
  194.   NS_DECL_ISUPPORTS
  195.   NS_DECL_NSIJSIID
  196.  
  197.   nsJSIID();
  198.  
  199. private:
  200.   ~nsJSIID();
  201.  
  202. protected:
  203.   /* additional members */
  204. };
  205.  
  206. /* Implementation file */
  207. NS_IMPL_ISUPPORTS1(nsJSIID, nsIJSIID)
  208.  
  209. nsJSIID::nsJSIID()
  210. {
  211.   /* member initializers and constructor code */
  212. }
  213.  
  214. nsJSIID::~nsJSIID()
  215. {
  216.   /* destructor code */
  217. }
  218.  
  219. /* End of implementation class template. */
  220. #endif
  221.  
  222.  
  223. /* starting interface:    nsIJSCID */
  224. #define NS_IJSCID_IID_STR "e3a24a60-d651-11d2-9843-006008962422"
  225.  
  226. #define NS_IJSCID_IID \
  227.   {0xe3a24a60, 0xd651, 0x11d2, \
  228.     { 0x98, 0x43, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  229.  
  230. class NS_NO_VTABLE nsIJSCID : public nsIJSID {
  231.  public: 
  232.  
  233.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJSCID_IID)
  234.  
  235.   /* nsISupports createInstance (); */
  236.   NS_IMETHOD CreateInstance(nsISupports **_retval) = 0;
  237.  
  238.   /* nsISupports getService (); */
  239.   NS_IMETHOD GetService(nsISupports **_retval) = 0;
  240.  
  241. };
  242.  
  243. /* Use this macro when declaring classes that implement this interface. */
  244. #define NS_DECL_NSIJSCID \
  245.   NS_IMETHOD CreateInstance(nsISupports **_retval); \
  246.   NS_IMETHOD GetService(nsISupports **_retval); 
  247.  
  248. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  249. #define NS_FORWARD_NSIJSCID(_to) \
  250.   NS_IMETHOD CreateInstance(nsISupports **_retval) { return _to CreateInstance(_retval); } \
  251.   NS_IMETHOD GetService(nsISupports **_retval) { return _to GetService(_retval); } 
  252.  
  253. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  254. #define NS_FORWARD_SAFE_NSIJSCID(_to) \
  255.   NS_IMETHOD CreateInstance(nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(_retval); } \
  256.   NS_IMETHOD GetService(nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetService(_retval); } 
  257.  
  258. #if 0
  259. /* Use the code below as a template for the implementation class for this interface. */
  260.  
  261. /* Header file */
  262. class nsJSCID : public nsIJSCID
  263. {
  264. public:
  265.   NS_DECL_ISUPPORTS
  266.   NS_DECL_NSIJSCID
  267.  
  268.   nsJSCID();
  269.  
  270. private:
  271.   ~nsJSCID();
  272.  
  273. protected:
  274.   /* additional members */
  275. };
  276.  
  277. /* Implementation file */
  278. NS_IMPL_ISUPPORTS1(nsJSCID, nsIJSCID)
  279.  
  280. nsJSCID::nsJSCID()
  281. {
  282.   /* member initializers and constructor code */
  283. }
  284.  
  285. nsJSCID::~nsJSCID()
  286. {
  287.   /* destructor code */
  288. }
  289.  
  290. /* nsISupports createInstance (); */
  291. NS_IMETHODIMP nsJSCID::CreateInstance(nsISupports **_retval)
  292. {
  293.     return NS_ERROR_NOT_IMPLEMENTED;
  294. }
  295.  
  296. /* nsISupports getService (); */
  297. NS_IMETHODIMP nsJSCID::GetService(nsISupports **_retval)
  298. {
  299.     return NS_ERROR_NOT_IMPLEMENTED;
  300. }
  301.  
  302. /* End of implementation class template. */
  303. #endif
  304.  
  305. /********************************************************/
  306. // {F24A14F0-4FA1-11d3-9894-006008962422}
  307. #define NS_JS_ID_CID  \
  308. { 0xf24a14f0, 0x4fa1, 0x11d3, \
  309.     { 0x98, 0x94, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  310.  
  311. #endif /* __gen_xpcjsid_h__ */
  312.